package com.example.backend2.exception;

public enum BusinessExceptionEnum {

    MEMBER_LOGIN_ERROR("用户名或密码错误!"),
    LOGIN_USERNAME_PASSWORD_EMPTY("用户名或密码为空"),
    LOGIN_USER_ALREADY_LOGIN("用户已登录"),
    NO_AUTHORIZED("没有权限");

    private String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                "} " + super.toString();
    }
}
